package com.lbd.gulimall.product.feign;

import com.lbd.common.to.SkuEsModel;
import com.lbd.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: linbd
 * @Description:
 * @Date: 2023/2/11 10:41
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    @PostMapping("/search/save/product")
    R bulkIndexSkuModel(@RequestBody List<SkuEsModel> skuEsModels);
}
